package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.entity.LeaveApplication;

import java.util.List;


/**
 * @Author: 鸢一折纸
 * @Email: 3498881048@qq.com
 * @Date: 2025/09/08 8:32
 * @Description: ${Description}
 **/


public interface LeaveApplicationMapper extends BaseMapper<LeaveApplication> {
    List<LeaveApplication> findLeaveApplication(
            Page<LeaveApplication> page,
            @Param("userId") Integer userId,
            @Param("leaveType") String leaveType,
            @Param("attendanceCycle") String attendanceCycle,
            @Param("applicationDate") String applicationDate);

    List<String> findAllAnnual(@Param("leaveType") String leaveType,
                               @Param("userId") Integer userId);
}